$(function(){
    // debugger;
    // var choseList = getUrlParam('choseList');
    // console.log(choseList);
    // var OselectedList = $('.selected-list');
    // choseList.forEach(element => {
    //     var newElement = $('<span class="label label-default success" id="' + element.id + '">' + element.text + '</span>');
    //     choseList.append(newElement);
    // });
    // for (const key in object) {
    //     var newElement = $('<span class="label label-default success" id="' + key + '">' + object[key] + '</span>');
    // }

    //选项卡操作：
    $('.tab').click(function () {
        $('.active').removeClass('active');
        $(this).addClass('active');
    });

    //查看详情
    $(".view-details").click(function(){
        window.location.href="./material_info.html";
    })

    $('.choose-btn').click(function(){
        $(this).css('display','none');
    })
})